#include "Tree.h"
#include "../Managers/GameManager.h"
#include "../Managers/InputManager.h"
#include "../Maps/Forest.h"

Tree::Tree(int radius)
	: GameObject(Vec2i(),'T', TCODColor::brass), radius(radius)
{
}

Tree::~Tree()
{
}

void Tree::init()
{
}

void Tree::update()
{
}

void Tree::render()
{
	auto console = GameManager::getSingleton()->getMapConsole();
	auto viewport_center = GameManager::getSingleton()->getMapViewport() / 2;
	console->putChar(pos.x(), pos.y(), tile, TCOD_BKGND_NONE);
	console->setCharForeground(viewport_center.x(), viewport_center.y(), color);
}
